﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace System.Linq
{
    public static class Enumerable
    {
        public static TSource Random<TSource>(this IEnumerable<TSource> source)
        {
            int index = new Random().Next(source.Count());
            return source.ElementAt(index);
        }
    }
}